<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Site extends CI_Controller {
    public function index() {
            
        if($this->session->userdata('username')) {
            redirect(base_url().'home/','refresh');
        } else {
            redirect(base_url().'account/login','refresh');
        }
    }
}